All Functions of Week 5

geom_segment

{GGPLOT2}

Generates a line segment or curve

xlab

{GGPLOT2}

Label the x axis (ggplot)

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

arrow

{GGPLOT2}

Draw an arrow in a ggplot graph

c

{base}

Combine values/vectors into a vector

set.seed

{base}

Initialise a pseudorandom number generator.

theme

{GGPLOT2}

Set theme for GGPLOT2

read.csv

{utils}

Read a csv file to data frame. Specify stringsAsFactors = FALSE to keep all string columns as characters

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

bar

{base}

Used for annotations, such as “expression(paste(”-“,bar(y)))”

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

sample_n

{dplyr}

Sample a number of observations from a data frame

with

{base}

evaluate expression in the context of a data frame

element_text

{GGPLOT2}

Customise text in GGPLOT2

geom_point

{GGPLOT2}

Generates a scatter plot

element_blank

{GGPLOT2}

This theme element draws nothing, and assigns no space

geom_ribbon

{GGPLOT2}

Generates an area plot

geom_density

{GGPLOT2}

Generates a density plot

ifelse

{base}

Return a or b depending on the value of test

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

summary

{base}

Obtain summary statistics or detailed regression output

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

expression

{base}

Used in plots to add symbols to axes

dnorm

{stats}

Density distribution for the normal distribution

setwd

{base}

Set Working Directory

ggplot

{GGPLOT2}

Create a ggplot graph

library

{base}

Load an R package

data.frame

{base}

Create a data.frame from vectors

seq

{base}

Create a sequence

ylab

{GGPLOT2}

Label the y axis (ggplot)

t.test

{stats}

Performs one and two sample t-tests on vectors of data.

The end!